package ooDay02;

public class Teacher extends Person {
    double salary;
    Teacher(){

    }
    Teacher(String name,String address,int age,double salary){
        super(name,age,address);
        this.salary = salary;
    }
    void sayHi(){
        System.out.println("大家好,我是"+name+"今年"+age+"岁了,"+"家住"+address+",工资是"+salary);
    }
    void teach(){
        System.out.println("正在上课");
    }

}
